<template>
	<view>
		<view class="bg-white radius-lg-bottom">
			<cu-custom bgColor="bg-gradual-write" :isBack="true">
				<block slot="backText">返回</block>
				<block slot="content">平面图</block>
			</cu-custom>
		</view>
		<view class="cu-bar bg-white margin-lr-xs margin-top-sm radius-lg-top">
			<view class="action border-title">
				<text class="text-xl text-bold text-blue">空间介绍</text>
				<text class="bg-gradual-blue" style="width:3rem"></text>
			</view>
		</view>
		<view class="bg-white margin-lr-xs margin-bottom-sm padding-lr-sm radius-lg-bottom">
			<view class="padding-bottom-lg">请让我通过一组图片向你介绍一下门店布局吧！</view>
			<view class="detail">
				<u-parse :content="detail"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getRoomInfo,
		getRoomBanners,
		getRoomDetail
	} from '@/api/sr/room'
	export default {
		data() {
			return {
				detail:undefined,
			}
		},
		onLoad() {
			this.getRoomDetail(uni.getStorageSync('roomId'))
		},
		methods: {
			async getRoomDetail(roomId) {
				const that = this
				getRoomDetail(roomId).then(response => {
					let data = response.data;
					console.info('getRoomDetail', data)
					if (data != null) {
						that.detail = data.detail
					}
				});
			},
		}
	}
</script>

<style>
</style>